package com.serviceimp;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import com.entity.Img;
import com.mapper.IImgMapper;
import com.service.IImgService;

@Transactional
public class IImgServiceImp implements IImgService{  
	 
	@Autowired
	public IImgMapper imgMapper;
 
	public List<Img> selectImg() {	
		List<Img> list=imgMapper.selectImg();
		return list;	
	}

	public Img queryImg(Img img) {
		return imgMapper.queryImg(img);
	}

	public Integer insertImg(Img img) {
		return imgMapper.insertImg(img);
	}

	public Integer updateImg(Img img) {		
		return imgMapper.updateImg(img);
	}

	public Integer deleteImg(Img img) {
		return imgMapper.deleteImg(img);
	}

}
